<template>
  <el-container>
    <el-header>
      <p>
        <span>{{ details.createTime }}</span>
        <span> {{ details.username }}</span>
        <span> {{ details.visits }}</span>
      </p>
      <h1>{{ details.title }}</h1>
    </el-header>

    <el-main v-html="details.articleBody"> </el-main>
  </el-container>
</template>

<script>
export default {

  data () {
    return {
      list: {
        username: '',
        createTime: '', // 时间
        title: '', // 文章标题
        articleBody: '', // 文章内容
        creator: '', // 录入人数
        visits: '' // 阅读数
      }
    }
  },
  props: {
    details: {
      type: Object,
      required: true
    }
  },
  created () {
    this.list = this.details
  },
  methods: {}
}
</script>

<style>
.el-header{
  margin-bottom: 50px; ;
}
.el-main {
  background-color: #e9eef3;
  color: #333;
  text-align: center;
  line-height: 160px;
}
</style>
